/**
 * 
 */
package com.mycompany.client.widgets;

import com.mycompany.shared.EnvConstants;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.DateDisplayFormat;
import com.smartgwt.client.widgets.form.fields.DateItem;

/**
 * @author coral.ma
 *
 */
public class CoralDateItem extends DateItem {

	public CoralDateItem(String name, String title) {
		super();
		setName(name);
		setTitle(title);
		setUseTextField(true);
		setEnforceDate(true);
		setInputFormat("YMD");
		setWidth(EnvConstants.CORAL_ITEM_WIDTH);
		setDateFormatter(DateDisplayFormat.TOSERIALIZEABLEDATE);
		setTextAlign(Alignment.LEFT);
	}
}
